package com.example.dw.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * 用户收藏课程实体类
 * @author system
 * @since 2024-01-01
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("user_favorite_course")
public class UserFavoriteCourse implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 用户课程收藏ID
     */
    @TableId(value = "user_course_id", type = IdType.AUTO)
    private Integer userCourseId;

    /**
     * 用户ID
     */
    @TableField("userid")
    private Integer userid;

    /**
     * 课程ID
     */
    @TableField("courseid")
    private Integer courseid;

    /**
     * 状态 (0-已收藏 1-已取消收藏)
     */
    @TableField("status")
    private Integer status;
} 